<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body::-webkit-scrollbar {
            width: 0;
        }

        ul {
            list-style: none;
        }

        .max>ul {
            display: flex;
        }

        .max li {
            width: 10%;
            overflow: hidden;
            transition: width .6s;
        }

        .max li img {
            transition: transform .6s;
        }

        .max li.active {
            width: 60%;
        }

        .max li.active img {
            transform: translateX(-400px);
        }
    </style>
</head>

<body>
    <div class="max">
        <ul>
            <li class="active"><img src="./images/pvp/1.jpg" alt=""></li>
            <li><img src="./images/pvp/2.jpg" alt=""></li>
            <li><img src="./images/pvp/3.jpg" alt=""></li>
            <li><img src="./images/pvp/4.jpg" alt=""></li>
            <li><img src="./images/pvp/0.jpg" alt=""></li>
        </ul>
    </div>
    <script>
        var lis = document.getElementsByTagName('li');
        for (var i = 0; i < lis.length; i++) {
            lis[i].onmouseenter = function () {
                for (var j = 0; j < lis.length; j++) {
                    lis[j].classList.remove('active')
                }
                this.classList.add('active')
            }
        }
    </script>
</body>

</html>